#example7_14.py
#coding=utf-8
import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
np.random.seed(1)
data=np.random.randn(100)   #数据
i=pd.date_range('1/1/2020', periods=100)    #标签
ts = pd.Series(data,index=i)
ts.plot(style='g--')
plt.show()
